package com.relytosoft.mizar.media.display.services.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.relytosoft.mizar.media.display.api.entity.ViewDetail;
import com.relytosoft.mizar.media.display.api.pojo.dto.ChannelRtspStreamDto;

import java.util.List;

/**
 * 视图明细业务接口
 *
 * @author hj
 * @version 1.0
 * @date 2022/4/24 9:44
 * @ClassName ViewDetailService
 */
public interface ViewDetailService extends IService<ViewDetail> {

    /**
     * 通过视图id删除视图明细
     * @author jgg
     * @date 2022/4/24 11:09
     * @param viewIds
     * @return boolean
     */
    boolean deleteByViewIds(List<Integer> viewIds);


    /**
     * 查询对应的rtsp流地址
     * @author jgg
     * @date 2022/4/24 17:18
     * @param id
     * @return java.util.List<com.relytosoft.mizar.media.display.api.pojo.dto.ChannelRtspStreamDto>
     */
    List<ChannelRtspStreamDto> selectRtspListByViewId(Integer id);

    /**
     * 通过视图id查询视图明细
     *
     * @param ids
     * @return java.util.List<com.relytosoft.mizar.media.display.api.entity.ViewDetail>
     * @author jgg
     * @date 2022/4/24 11:17
     */
    List<ViewDetail> selectListByViewId(List<Integer> ids);
}
